package com.yh.javabean;

/**
 * @Auther: Liang
 * @Date: 2024/5/10 - 05 - 10 - 16:26
 * @Description: com.yh.javabean
 * @version: 1.0
 */
public class LazyOne {
    private static LazyOne instance;

    private LazyOne() {
        // 私有构造函数，防止外部实例化
    }

    public static LazyOne getInstance() {
        if (instance == null) {
            instance = new LazyOne();
        }
        return instance;
    }
}
